(org-babel-do-load-languages
 'org-babel-load-languages
 '((emacs-lisp . t)
   (shell . t)))

(setq org-export-backends '(ascii md html))

(display-time-mode 1)
(save-place-mode 1)

(use-package magit)

(setq
 user-mail-address "jbranso@dismail.de"
 user-full-name "Joshua Branson")

(setq ;;disable gnus-select-method gnus-select-method '()
      gnus-secondary-select-methods '((nnimap "imap.dismail.de"))
      ;; save emails that gnus send to my Sent folder
      gnus-posting-styles
      '((".*"
	 (gcc "\"nnimap+imap.dismail.de:Sent\"")
	 ;; this custom header lets an email filter mark
	 ;; this email as read.
	 ("X-Gnus-Sucks" "I know man")))
      message-signature "\nJoshua Branson\nSent from the Hurd\n"
      ;; use msmtp to send email
      message-send-mail-function 'message-send-mail-with-sendmail
      send-mail-function 'message-send-mail-with-sendmail
      ;; change sendmail to msmtp
      sendmail-program "/usr/bin/msmtp"
      ;; this is a magic and necesary incantation
      message-sendmail-f-is-evil 't
      ;; tell msmtp which email account we are using
      message-sendmail-extra-arguments '("--read-envelope-from")
      )

(add-hook 'text-mode-hook 'auto-fill-mode)
;; this is a hack. install markdown mode
(add-hook 'fundmental-mode 'auto-fill-mode)


(setq erc-hide-list '("JOIN" "KICK" "NICK" "PART" "QUIT" "MODE")
      erc-nick "gnucode"
      erc-server "irc.libera.chat"
      erc-autojoin-channels-alist
      '(("Libera.chat" "#emacs" "#guix" "#hurd" "#talos-workstation")
	("OFTC" "chimera-linux")
	))

(defun my-erc ()
  "My autoconnecting to irc networks."
  (interactive)
  (erc :server "irc.libera.chat"
       :port "6667"
       :nick gnucode)
  (erc :server "irc.oftc.net"
       :port "6667"
       :nick "gnucode"))

(setq package-selected-packages '(pinentry magit))

(custom-set-faces
 ;; custom-set-faces was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 )
(custom-set-variables
 ;; custom-set-variables was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 '(package-selected-packages '(debbugs evil pinentry magit))
 '(safe-local-variable-values '((projectile-project-compilation-dir . "c/"))))
